package com.mkx.service.impl;

import com.mkx.service.FirstCaseService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * First Case 服务实现类
 * 使用DubboService注解将服务暴露给其他微服务
 * 移除@Service注解避免Spring和Dubbo的重复注册
 */
@DubboService(interfaceClass = FirstCaseService.class, group = "DEV_GROUP", version = "1.0.0", timeout = 3000)
public class FirstCaseServiceImpl implements FirstCaseService {

    @Override
    public String getServiceInfo(String param) {
        return "First Case Service - Received parameter: " + param;
    }

    @Override
    public String processBusiness(Long id) {
        return "First Case Service - Processed business with ID: " + id;
    }
}